<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>右侧导航</title>
        <style>
            * {
                margin: 0;
                padding: 0;
                list-style: none;
                box-sizing: border-box;
            }
            .nav {
                width: 250px;
                /* border: 1px solid black; */
                position: fixed;
                right: 0;
            }
            .nav li {
                cursor: pointer;
                overflow: hidden;
                margin-bottom: 3px;
                position: relative;
                transition: all 0.5s;
                left: 200px;
            }
            .nav:hover li {
                left: 0;
            }
            .nav li:nth-child(2) {
                transition-delay: 0.1s;
            }
            .nav li:nth-child(3) {
                transition-delay: 0.2s;
            }
            .nav li:nth-child(4) {
                transition-delay: 0.3s;
            }
            .nav li:nth-child(5) {
                transition-delay: 0.4s;
            }
            .nav li:nth-child(6) {
                transition-delay: 0.5s;
            }
            .nav li:nth-child(7) {
                transition-delay: 0.6s;
            }
            .nav li:nth-child(8) {
                transition-delay: 0.7s;
            }
            .nav li:last-child {
                margin-bottom: 0;
                transition-delay: 0.8s;
            }
            .nav li div {
                float: left;
                height: 50px;
                line-height: 50px;
                text-align: center;
            }
            .nav li div:first-child {
                width: 50px;
                background-color: #1c75a3;
            }
            .nav li div:last-child {
                width: calc(100% - 50px);
            }
        </style>
    </head>
    <body>
        <ul class="nav">
            <li>
                <div>0</div>
                <div>站长素材</div>
            </li>
            <li>
                <div>0</div>
                <div>站长素材</div>
            </li>
            <li>
                <div>0</div>
                <div>站长素材</div>
            </li>
            <li>
                <div>0</div>
                <div>站长素材</div>
            </li>
            <li>
                <div>0</div>
                <div>站长素材</div>
            </li>
            <li>
                <div>0</div>
                <div>站长素材</div>
            </li>
            <li>
                <div>0</div>
                <div>站长素材</div>
            </li>
            <li>
                <div>0</div>
                <div>站长素材</div>
            </li>
            <li>
                <div>0</div>
                <div>站长素材</div>
            </li>
        </ul>
    </body>
</html>
